package com.zs.user.service;

import com.zs.user.mapper.UserMapper;
import com.zs.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @projectName: hmall-parent
 * @package: com.zs.user.service
 * @className: Uservice
 * @author: zs
 * @description:
 * @date: 2023/5/12 22:17
 * @version: 1.0
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id) {
        User user = userMapper.findById(id);
        return user;
    }

}
